﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ERPForms
{
    public partial class TipDepartamentFrm : FrmRezumat
    {
        public TipDepartamentFrm(ModuleClass mInfo)
            : base(mInfo)
        {
            InitializeComponent();
            workConnString = mInfo.workConnectionString;
        }

        private void TipDepartamentFrm_Load(object sender, EventArgs e)
        {
            SqlConnection con = DeschideConexiune(workConnString);
            this.tipDepartamentTableAdapter.Connection = con;
            this.tipDepartamentTableAdapter.Fill(this.eSRPDataSet.TipDepartament);
            InchideConexiune(con);

            this.listBndSourceMain.Add(tipDepartamentBindingSource);
            listTableAdaptor.Add(this.tipDepartamentTableAdapter.Adapter);
        }
    }
}
